// 把函数赋值给变量

let fn = function () {
  console.log(`hello`)
}
fn();


// 把函数赋值给对象参数

const obj1 = {
  a: function (index) { },
  b: function (num) { },
  c: function (str) { },
}

const obj2 = {
  head: obj1.a,
  body: obj1.b,
  foot: obj1.c
}